package info.pixstone.foodhunter.control;

import java.util.ArrayList;

import info.pixstone.foodhunter.acquaintance.IAUser;
import info.pixstone.foodhunter.domain.mediator.MFriendManage;

public class CFriendManage
{
	private boolean isSucceed;
	private MFriendManage friendManage;
	private ArrayList<IAUser> friendList;
	public boolean add(IAUser user,int friendID )
	{
		friendManage=new MFriendManage();
		isSucceed=friendManage.add(user, friendID);
		return isSucceed;
	}
	
	public boolean delete(IAUser user,int friendID )
	{
		friendManage=new MFriendManage();
		isSucceed=friendManage.delete(user, friendID);
		return isSucceed;
	}
	public ArrayList<IAUser> getFriendList(IAUser currentUser)
	{
		friendManage=new MFriendManage();
		friendList=friendManage.getFriendList(currentUser);
		return friendList;
		
	}
	
}
